I've seen in some cases systemd try to unmount /etc quite early
and then fail because it's in use.
It's confusing because I don't see this in all scenarios.
But regardless, in the situations where it does occur,
this fixes it.
Signed-off-by: Colin Walters <walters@verbum.org>
ConditionPathExists=/run/ostree-booted
DefaultDependencies=no
-RequiresMountsFor=/sysroot /boot
+RequiresMountsFor=/sysroot /boot /etc
After=local-fs.target
Before=basic.target final.target
# We want to make sure the transaction logs are persisted to disk: